<?php

namespace app\common\validate;

class WorkOrderValidate extends BaseValidate
{
    /**
     * 验证规则
     */
    protected $field = [
        'id'                        => '',
        'appointment_order_no'      => '预约订单号',
        'appointment_order_item_id' => '预约订单项ID',
        'service_id'                => '服务ID',
        'service_name'              => '服务名称',
        'user_id'                   => '预约用户ID',
        'user_name'                 => '预约用户名称',
        'mobile'                    => '预约用户手机号',
        'store_id'                  => '门店ID',
        'store_name'                => '门店名称',
        'admin_id'                  => '技师ID',
        'admin_name'                => '技师名称',
        'start_time'                => '服务开始时间',
        'end_time'                  => '服务介绍时间',
        'status'                    => '工单状态',

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'getWorkOrderPage' => [
            'search_status'=>'in:1,2,3',
            'page_index' =>'require|integer',
            'page_size' =>'require|integer'
        ],
        'getWorkOrderList' => [],
        'setWorkOrderItem' => [],
        'addWorkOrderItem' => [],
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
